<template>
    <div class="tabbar">
        <slot></slot>
    </div>
</template>

<script>
export default {
    props: {
        value: {},
    },
    watch: {
        value() {},
    },
    created() {
        this.$on('itemClick', (active) => {
            this.$emit('input', active)
        })
    },
}
</script>

<style lang='scss'>
@import '@css/style.scss';
.tabbar {
    width: 100%;
    height: calc(px2rem(50) + px2rem(20));
    display: flex;
    padding: px2rem(10) 0;
    position: relative;
    &::after {
        content: '';
        width: 200%;
        height: 1px;
        position: absolute;
        top: 0;
        left: -50%;
        background: $lineColor;
        transform: scale(0.5);
    }
}
</style>